package com.dtagri.fjwlw.bean;

/**
 * TjMenuId entity. @author MyEclipse Persistence Tools
 */

public class TjMenu implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer menuId;
	private Integer parentId;
	private Integer funcNum;
	private String menuKey;
	private String menu_key;
	private String url;
	private Integer flag;
	private String iconUrl;
	private String description;

	// Constructors

	/** default constructor */
	public TjMenu() {
	}

	/** minimal constructor */
	public TjMenu(Integer menuId) {
		this.menuId = menuId;
	}

	/** full constructor */
	public TjMenu(String url, String menu_key, String description) {
		this.url = url;
		this.menu_key = menu_key;
		this.description = description;
	}

	// Property accessors
	public String getMenu_key() {
		return menu_key;
	}

	public void setMenu_key(String menu_key) {
		this.menu_key = menu_key;
	}

	public Integer getMenuId() {
		return this.menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getFuncNum() {
		return this.funcNum;
	}

	public void setFuncNum(Integer funcNum) {
		this.funcNum = funcNum;
	}

	public String getMenuKey() {
		return this.menuKey;
	}

	public void setMenuKey(String menuKey) {
		this.menuKey = menuKey;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getFlag() {
		return this.flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getIconUrl() {
		return this.iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TjMenu))
			return false;
		TjMenu castOther = (TjMenu) other;

		return ((this.getMenuId() == castOther.getMenuId()) || (this
				.getMenuId() != null && castOther.getMenuId() != null && this
				.getMenuId().equals(castOther.getMenuId())))
				&& ((this.getParentId() == castOther.getParentId()) || (this
						.getParentId() != null
						&& castOther.getParentId() != null && this
						.getParentId().equals(castOther.getParentId())))
				&& ((this.getFuncNum() == castOther.getFuncNum()) || (this
						.getFuncNum() != null && castOther.getFuncNum() != null && this
						.getFuncNum().equals(castOther.getFuncNum())))
				&& ((this.getMenuKey() == castOther.getMenuKey()) || (this
						.getMenuKey() != null && castOther.getMenuKey() != null && this
						.getMenuKey().equals(castOther.getMenuKey())))
				&& ((this.getUrl() == castOther.getUrl()) || (this.getUrl() != null
						&& castOther.getUrl() != null && this.getUrl().equals(
						castOther.getUrl())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())))
				&& ((this.getIconUrl() == castOther.getIconUrl()) || (this
						.getIconUrl() != null && castOther.getIconUrl() != null && this
						.getIconUrl().equals(castOther.getIconUrl())))
				&& ((this.getDescription() == castOther.getDescription()) || (this
						.getDescription() != null
						&& castOther.getDescription() != null && this
						.getDescription().equals(castOther.getDescription())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMenuId() == null ? 0 : this.getMenuId().hashCode());
		result = 37 * result
				+ (getParentId() == null ? 0 : this.getParentId().hashCode());
		result = 37 * result
				+ (getFuncNum() == null ? 0 : this.getFuncNum().hashCode());
		result = 37 * result
				+ (getMenuKey() == null ? 0 : this.getMenuKey().hashCode());
		result = 37 * result
				+ (getUrl() == null ? 0 : this.getUrl().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		result = 37 * result
				+ (getIconUrl() == null ? 0 : this.getIconUrl().hashCode());
		result = 37
				* result
				+ (getDescription() == null ? 0 : this.getDescription()
						.hashCode());
		return result;
	}

}